package org.mysocial.datamodel;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

/**
 * @author ivan
 * @version 1.0
 * @created 21-Jul-2011 10:00:33 PM
 */
@Entity
public class Upload extends Post
{
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "binary_content_fk")
	private BinaryContent binaryContent;

	public Upload()
	{

	}

	public BinaryContent getBinaryContent()
	{
		return binaryContent;
	}

	public void setBinaryContent(BinaryContent picture)
	{
		this.binaryContent = picture;
	}

}